package phi.engine.utils 
{
	/**
	 * ...
	 * @author Alexandru Ghiura
	 */
	public class PhiMathUtil 
	{
		static public const METERS_RATION :Number = 30;
		
		static public function pixelsToMeters( p:Number ):Number
		{
			return p / METERS_RATION;
		}
		
		static public function metersToPixels( m:Number ):Number
		{
			return m * METERS_RATION;
		}
		
		static public function toRadians( angle:Number ):Number
		{
			return angle * Math.PI / 180;
		}
		
		static public function toDegree( angle:Number ):Number
		{
			return angle * 180 / Math.PI;
		}
	}

}